package com.axzhengxin.platform.axcube.transf;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * ElasticSearchAgentRequest
 * 安信魔方查询请求报文实体类
 *
 * @author jiangnan
 * @date 2021/3/18
 */
@Data
@Accessors(chain = true)
public class ElasticSearchAgentRequest {

    /**
     * 过滤条件
     */
    List<QueryFilter> filters;
    /**
     * 查询关键字
     */
    private String searchKey;
    /**
     * 搜索方式
     */
    private String searchType;
    /**
     * 起始页码
     */
    private int from;
    /**
     * 每页大小
     */
    private int size;

    @Data
    @Accessors(chain = true)
    public static class QueryFilter {

        private String filterKey;

        private String filterValue;

    }

}
